package com.zk.nacosprovider.Entity;

import java.io.Serializable;
import java.util.Date;

public class folder implements Serializable {
    private String folderid;

    private String ownerid;

    private String folderpassword;

    private String foldername;

    private Date createtime;

    private String comment;

    private Integer falsedeletion;

    private static final long serialVersionUID = 1L;

    public String getFolderid() {
        return folderid;
    }

    public void setFolderid(String folderid) {
        this.folderid = folderid == null ? null : folderid.trim();
    }

    public String getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(String ownerid) {
        this.ownerid = ownerid == null ? null : ownerid.trim();
    }

    public String getFolderpassword() {
        return folderpassword;
    }

    public void setFolderpassword(String folderpassword) {
        this.folderpassword = folderpassword == null ? null : folderpassword.trim();
    }

    public String getFoldername() {
        return foldername;
    }

    public void setFoldername(String foldername) {
        this.foldername = foldername == null ? null : foldername.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    public Integer getFalsedeletion() {
        return falsedeletion;
    }

    public void setFalsedeletion(Integer falsedeletion) {
        this.falsedeletion = falsedeletion;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        folder other = (folder) that;
        return (this.getFolderid() == null ? other.getFolderid() == null : this.getFolderid().equals(other.getFolderid()))
            && (this.getOwnerid() == null ? other.getOwnerid() == null : this.getOwnerid().equals(other.getOwnerid()))
            && (this.getFolderpassword() == null ? other.getFolderpassword() == null : this.getFolderpassword().equals(other.getFolderpassword()))
            && (this.getFoldername() == null ? other.getFoldername() == null : this.getFoldername().equals(other.getFoldername()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
            && (this.getFalsedeletion() == null ? other.getFalsedeletion() == null : this.getFalsedeletion().equals(other.getFalsedeletion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFolderid() == null) ? 0 : getFolderid().hashCode());
        result = prime * result + ((getOwnerid() == null) ? 0 : getOwnerid().hashCode());
        result = prime * result + ((getFolderpassword() == null) ? 0 : getFolderpassword().hashCode());
        result = prime * result + ((getFoldername() == null) ? 0 : getFoldername().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        result = prime * result + ((getFalsedeletion() == null) ? 0 : getFalsedeletion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", folderid=").append(folderid);
        sb.append(", ownerid=").append(ownerid);
        sb.append(", folderpassword=").append(folderpassword);
        sb.append(", foldername=").append(foldername);
        sb.append(", createtime=").append(createtime);
        sb.append(", comment=").append(comment);
        sb.append(", falsedeletion=").append(falsedeletion);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}